import os
import numpy as np

root_dir = './repair'
dic = {}
for root, dir, files in os.walk(root_dir):
    for file in files:
        with open(root_dir + '/' + file, 'r') as f:
            records = f.readlines()
        print(file)
        records = [eval(x) for x in records]
        records_np = np.asarray(records)
        dic[file] = np.mean(records_np)
print(dic)